# -*- coding: utf-8 -*-
"""
 @Time    : 2021/1/29 下午6:13
 @Author  : tgy
 
"""
from tempfile import TemporaryFile, NamedTemporaryFile


def test01():
    with TemporaryFile(mode='w+t') as f:
        f.write('哈哈')

def test02():
    ...
    with NamedTemporaryFile('w+t') as f:
        print(f.name)

if __name__ == '__main__':
    ...
    test02()
